package com.learn.mapper;

import com.learn.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper //在运行时会自动生成接口的实现类对象，并且将对象交给IOC容器管理
public interface UserMapper {
    @Select("select * from user")
    public List<User> list();
}
